/**
 * Package:com.afteryuan.server.service;
 * $Id$
 * Copyright(c) 2001-2005 www.afteryuan.com
 */
package com.afteryuan.server.service;

import com.afteryuan.server.data.Room;
import com.afteryuan.server.data.Sprite;
import com.afteryuan.server.command.down.CommandDown;

import java.util.Collection;

/**
 * SceneService
 * <p/>
 * <p><a href="SceneService.java.html"><i>View Source</i></a></p>
 *
 * @author <a href="mailto:afteryuan@afteryuan.com">$Author$</a>
 * @version $Revision$
 */
public interface SpriteService {
    /**
     * 给所有在线sprite广播
     * @param commandDown
     */
    void broadcast(CommandDown commandDown);
    /**
     * 给空间内所有sprite广播
     * @param room
     * @param commandDown
     */
    void broadcast(Room room, CommandDown commandDown);
    /**
     * 给空间内所有sprite广播
     * @param sprites
     * @param commandDown
     */
    void broadcast(Collection<Sprite> sprites, CommandDown commandDown);
}
